package com.cxx.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cxx.admin.dto.blog.BlogCategoryDto;
import com.cxx.admin.dto.blog.BlogDto;
import com.cxx.admin.dto.blog.BlogVisitDto;

import java.util.List;

public interface BlogManageService {
    IPage<BlogDto> queryBlogByPage(Integer currentPage, Integer pageSize);

    BlogDto queryBlogById(Long id);

    List<BlogCategoryDto> queryBlogCategory();

    Boolean addBlog(BlogDto blog);

    Boolean updateBlog(Long id, BlogDto blog);

    Boolean deleteBlog(Long id);

    IPage<BlogVisitDto> queryBlogVisit(Integer currentPage, Integer pageSize);
}
